﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApp1.Mode
{
    /// <summary>
    ///  分页基础模型
    /// </summary>
    public class BaseSearchPage
    {
        /// <summary>
        /// 当前分页
        /// </summary>
        public int CurrentIndex { get; set; } = 1;
        /// <summary>
        /// 每页查询数据条数
        /// </summary>
        public int PageSize { get; set; } = 10;

        /// <summary>
        ///  用户状态 -1  全部，  0 正常 1:禁用
        /// </summary>
        public virtual int State { set; get; } = -1;
        /// <summary>
        ///  查询关键字
        /// </summary>
        public string SearchWord { set; get; } = "";
		public string orderByWhere { set; get; }
		public string isZy { get; set; }

	}


    /// <summary>
    ///  权限分页查询
    /// </summary>
    public class RoleSearchModel : BaseSearchPage
    {

    }

    /// <summary>
    ///  部门查询模型
    /// </summary>
    public class DepartmentSearchModel : BaseSearchPage
    {

    }

    /// <summary>
    ///  权限列表模型
    /// </summary>
    public class FunctionSearchModel : BaseSearchPage
    {

    }

    /// <summary>
    ///   参加活动， 发起活动 列表查询模型
    /// </summary>
    public class MyActivitySearchModel : BaseSearchPage
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserID { set; get; }


    }

	/// <summary>
	/// 分页
	/// </summary>
	/// <typeparam name="T"></typeparam>
	public class EntityPage<T>
	{
		/// <summary>
		/// 总条数
		/// </summary>
		public int Count { get; set; }
		/// <summary>
		/// 数据集合
		/// </summary>
		public List<T> Items { get; set; }
		/// <summary>
		/// 总页数
		/// </summary>
		public int PageCount { get; set; }
	}

	/// <summary>
	///  收藏 
	/// </summary>
	public class CollectionSearchModel : BaseSearchPage
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserID { set; get; }

    }
    /// <summary>
    /// 订单列表查询条件
    /// </summary>
    public class orderListSearchModel : BaseSearchPage
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserID { set; get; }
    }

    /// <summary>
    /// 评论列表查询
    /// </summary>
    public class CommentListSearchModel : BaseSearchPage
    {
        /// <summary>
        /// 城市ID
        /// </summary>
        public int CityID { set; get; }

        /// <summary>
        ///  活动主题ID
        /// </summary>

        public Guid? AvtivityTypeID { set; get; }

        /// <summary>
        ///  开始时间
        /// </summary>
        public string StartTime { set; get; }
        /// <summary>
        ///  结束时间
        /// </summary>
        public string EndTime { set; get; }

    }

    /// <summary>
    /// 活动评论查询(app)
    /// </summary>
    public class ActivityCommentSearchModel : BaseSearchPage
    {

        /// <summary>
        /// 活动ID
        /// </summary>
        public Guid ActivityID { set; get; }
    }

    /// <summary>
    ///  后台活动列表查询模型
    /// </summary>
    public class ActivityAdminSearchModel : BaseSearchPage
    {
        /// <summary>
        /// 城市ID
        /// </summary>
        public int CityID { set; get; }

        /// <summary>
        ///  活动主题ID
        /// </summary>

        public Guid? AvtivityTypeID { set; get; }

        /// <summary>
        ///  开始时间
        /// </summary>
        public string StartTime { set; get; }
        /// <summary>
        ///  结束时间
        /// </summary>
        public string EndTime { set; get; }
		 

        /// <summary>
        /// -1，全部  1 未启动 ，2已启动，3 已完成
        /// </summary>
        public int IsStart { set; get; }
		 

        /// <summary>
        /// 发起方
        /// </summary>
        public Guid sponsor { set; get; }

    }



    /// <summary>
    /// 活动消息查询
    /// </summary>
    public class ActivityMessageSearchModel : BaseSearchPage
    {

        /// <summary>
        ///  开始时间
        /// </summary>
        public string StartTime { set; get; }
        /// <summary>
        ///  结束时间
        /// </summary>
        public string EndTime { set; get; }
    }

    /// <summary>
    /// 用户活动统计
    /// </summary>
    public class UsersActivitySearchModel : BaseSearchPage
    {

        /// <summary>
        /// 城市ID
        /// </summary>
        public int CityID { set; get; }
        /// <summary>
        ///  开始时间
        /// </summary>
        public string StartTime { set; get; }
        /// <summary>
        ///  结束时间
        /// </summary>
        public string EndTime { set; get; }

        /// <summary>
        /// 省份ID
        /// </summary>
        public int ProID { set; get; }
    }

    /// <summary>
    /// 用户短信验证码查询
    /// </summary>
    public class UserShortMessage : BaseSearchPage
    {


    }

    /// <summary>
    /// 主页搜索查询模型
    /// </summary>
    public class MainPageSearchModel : BaseSearchPage
    {
        public double latitude { get; set; } = 0;
        public double longitude { get; set; } = 0;
        /// <summary>
        /// 登录用户信息
        /// </summary>
        public string token { get; set; } = "";
        /// <summary>
        /// 排序条件 (-1是默认 1是评价  2是距离)
        /// </summary>
        public int PaiXu { get; set; } = -1;
        /// <summary>
        /// 搜索来源 (1是微信  0是APP)(微信来源只查询有规则的景区)
        /// </summary>
        public int Source { get; set; } = 0;
        /// <summary>
        /// 地区ID
        /// </summary>
        public int AreaId { get; set; } = -1;
        /// <summary>
        /// 等级
        /// </summary>
        public string ScenicSortId { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        public string SellingPointsId { get; set; }
    }

    /// <summary>
    /// 系统消息查询模板
    /// </summary>
    public class SystemMessageSearchModel : BaseSearchPage
    {

    }
    /// <summary>
    /// 用户活动预定查询
    /// </summary>
    public class ActivityOrderSearchModel : BaseSearchPage
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string ActivityID { set; get; }
    }

    /// <summary>
    /// 微信活动查询
    /// </summary>
    public class ActivityWeixinSearchModel : BaseSearchPage
    {
        /// <summary>
        /// -1，全部  1 未启动 ，2已启动，3 已完成
        /// </summary>
        public int IsStart { set; get; }
    }

    /// <summary>
    /// 短信模版查询
    /// </summary>
    public class SmsLogSearchModel : BaseSearchPage
    {
        /// <summary>
        /// 检索关键字
        /// </summary>
        public string SearchWord { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string StartTime { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string EndTime { get; set; }

    }


}
